package com.zhongxiangspace.mapper;

import com.zhongxiangspace.entity.Banner;
import com.zhongxiangspace.entity.QueryAnalyzer;
import com.zhongxiangspace.entity.VO.BannerVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * banner
 */
public interface BannerMapper {
    /**
     *
     * @param banner
     * @return
     */
    boolean insert(Banner banner);

    /**
     *  获取data
     * @param queryAnalyzer 条件
     * @return
     */
    List<Banner> queryByKeyword(QueryAnalyzer queryAnalyzer);

    /**
     * 删除data
     * @param id
     * @return
     */
    boolean delete(@Param("id") String id);

    /**
     * 修改是否上线状态
     * @param banner
     * @return
     */
    boolean updataStatusCode(Banner banner);

    /**
     * 获取单条data
     * @param id
     * @return
     */
    Banner queryOne(@Param("id")String id);

    /**
     * 修改
     * @param banner
     * @return
     */
    boolean updata(Banner banner);

    /**
     * 条件查询
     * @param bannerQueryAnalyzer
     * @return
     */
    List<BannerVO> queryBannerVO(QueryAnalyzer bannerQueryAnalyzer);
}
